package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.QuestionsAndAnswers;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.QuestionsAndAnswersQueryObject;
import com.github.pagehelper.PageInfo;

/**
 * 问题
 */
public interface IQuestionsAndAnswersService {
    /***
     * 新增和更新
     * @param questionsAndAnswers
     */
    void saveOrUpdate(QuestionsAndAnswers questionsAndAnswers);

    /**
     * 高查 翻页
     * @param qo
     */

    PageInfo<QuestionsAndAnswers> query(QuestionsAndAnswersQueryObject qo);

    /**
     * 根据问题id查询问题信息
     * @param id
     * @return
     */
    QuestionsAndAnswers getQuestionsAndAnswersById(Long id);
}
